{% extends 'layout.html' %}
{% block body %}
    <form action="{{ url_for('login') }}" method="post" class="login-form">
        {% if error %}
            <p class="error">{{ error }}</p>
        {% endif %}
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password">
        </div>
        <div class="form-group">
            <button type="submit">登录</button>
        </div>
    </form>
{% endblock %}
